<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<link type="text/css" rel="stylesheet" href="/${initParam.context_root }/css/tab_cscenter.css">
<link type="text/css" rel="stylesheet" href="/${initParam.context_root }/css/notice.css">
<script type="text/javascript" src="/${initParam.context_root }/script/cscenter.js"></script>
<script type="text/javascript">
function cancelForm(){
	var f1 = window.document.form_name;
	f1.action="/${initParam.context_root }/cscenter/list.do?page=${requestScope.page }";
	f1.submit();
}
</script>
<h3>글쓰기</h3>
<form name="form_name" action="/${initParam.context_root }/cscenter/login/writeContent.do" method="post" onsubmit="return writeFormCheck(this);">
	<input type="hidden" name="divide" value=${requestScope.divide }>
	<table>
		<tr>
			<td width="100px">제목</td>
			<td><input type="text" id="subject"  name="title" size="70"></td>
		</tr>
		<tr>
			<td>작성자 : </td>
			<td>${sessionScope.login_info.nickname }</td>
		</tr>
		<c:if test="${requestScope.divide=='7'}">
			<tr>
				<td>이메일 : </td>
				<td><input type="text" id="email" name="email" size="40" value="${sessionScope.login_info.email }"></td>
			</tr>
		</c:if>
		<tr>
			<td colspan="2">
				<textarea cols="100" rows="15" name="content"></textarea>
			</td>
		</tr>
		<tr>
			<td colspan="2">
				<input type="button" value="취소" onclick="cancelForm();">
				<input type="submit" value="등록">
				<input type="reset" value="초기화" onclick="return resetForm();">
			</td>
		</tr>
	</table>
</form>